<ul style="padding-left: 5px;">
  <% unless show_flag.nil? %>
      <% case %>
  <% when show_flag == '1' %>
          <strong><%= l(:label_user) %>(<%= @results_count %>)</strong>
          <%= render :partial => "show_users", :locals => {:users_results => users_results} %>
      <% when show_flag == '2' %>
          <strong><%= l(:label_project) %>(<%= @results_count %>)</strong>
          <%= render :partial => "show_projects", :locals => {:projects_results => projects_results} %>
      <% when show_flag == '3' %>
          <strong><%= l(:label_issue) %>(<%= @results_count %>)</strong>
          <%= render :partial => "show_issues", :locals => {:issues_results => issues_results} %>
      <% when show_flag == '4' %>
          <strong><%= l(:label_requirement) %>(<%= @results_count %>)</strong>
          <%= render :partial => "show_bids", :locals => {:bids_results => bids_results} %>
      <% when show_flag == '5' %>
          <strong><%= l(:label_forum) %>(<%= @results_count %>)</strong>
          <%= render :partial => "show_forums", :locals => {:forums_results => forums_results} %>
      <% when show_flag == '6' %>
      <% when show_flag == '7' %>
          <strong><%= l(:label_contest_innovate) %>(<%= @results_count %>)</strong>
          <%= render :partial => "show_contests", :locals => {:contests_results => contests_results} %>
      <% when show_flag == '8' %>
            开源项目：(<%= @results_count %>)</strong>
          <%= render :partial => "show_open_source_projects", :locals => {:projects_results => open_source_projects_results} %>
      <% when show_flag == '9' %>
            热帖：(<%= @results_count %>)</strong>
          <%= render :partial => "show_topics", :locals => {:topics_results => topics_results} %>
      <% else %>
          <strong><%= l(:label_tags_all_objects) %></strong>
          <!--  这里为显示搜有过滤结果预留了默认设置 -->
          <%= render :partial => "show_issues", :locals => {:issues_results => issues_results} %>
          <%= render :partial => "show_users", :locals => {:users_results => users_results} %>
          <%= render :partial => "show_projects", :locals => {:projects_results => projects_results} %>
          <%= render :partial => "show_bids", :locals => {:bids_results => bids_results} %>
          <%= render :partial => "show_contests", :locals => {:contests_results => contests_results} %>
      <% end %>

  <% else %>
      <span>no data...</span>
  <% end %>
</ul>
<%= render :partial => "pagination", :locals => {:obj_pages => @obj_pages} %>

